package com.wl.wuliu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wl.wuliu.entity.SysRole;
import com.wl.wuliu.mapper.SysRoleMapper;
import com.wl.wuliu.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: gutaozhen
 * @Date: 2024/5/15
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {

    @Autowired
    private SysRoleMapper sysRoleMapper;

    @Override
    public List<SysRole> getList() {

        List<SysRole> sysRoles = sysRoleMapper.selectList(new QueryWrapper<>());
        return sysRoles;
    }
}
